{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <!--树状图-->
        <section class="col-lg-2 connectedSortable" style="padding-right:0;">
         <div class="sidebar" style="background-color:#fff; padding-bottom:0px;">
             <ul class="sidebar-menu" id="chan">
					{%foreach from=$grade_lists key=key item=value%}
                    <li class="treeview {%if $grade_id==$value.grade_id%}active{%/if%}">
                      <a href="index.php?a=score.tplist&grade_id={%$value.grade_id%}"> <i class="glyphicon glyphicon-align-left"></i> <span>{%$value.grade_name%}</span>  </a>    
                    </li>
					{%/foreach%}
              </ul>
            </div>
          
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <a href="index.php?a=score.tplist&grade_id={%$grade_id%}&tp_type=1" class="btn {%if $tp_type=='1'%}btn-primary{%else%}btn-default{%/if%} btn-sm">上级表模</a>
                    <a href="index.php?a=score.tplist&grade_id={%$grade_id%}&tp_type=2" class="btn {%if $tp_type=='2'%}btn-primary{%else%}btn-default{%/if%}  btn-sm">校内报模</a>
                    <a href="index.php?a=score.tpadd&grade_id={%$grade_id%}&tp_type={%$tp_type%}" class="btn btn-primary btn-sm" style="float:right;">新 增</a>
                </div>
                <div class="box-body">
                      <table class="table table-bordered" id="mytable">     
                            <thead>
                               <tr style="background-color:#fcb53f;">
                                   <td>学科</td>
                                   <td>考试</td>
                                   <td>统计表项目</td>
                                   <td>分析行名称</td>
                                   <td width="110">操作</td>
                               </tr>
                            </thead>
								{%foreach from=$tp_lists key=key item=value%}
                                <tr>
                                   <td>{%$value.subject_name%}</td>
                                   <td>{%$value.exam_name%}</td>
                                   <td>{%$value.stat_name%}</td>
                                   <td>{%$value.note_name%}</td>
                                   <td>
                    					<a href="index.php?a=score.tpdel&tp_id={%$value.tp_id%}&grade_id={%$grade_id%}&tp_type={%$tp_type%}"  title="删除" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> <i class="fa fa-trash"></i> </a>
                                   </td>
                               </tr>
								{%/foreach%}
                      </table>
				</div><!--box-body -->
                
              </form>
           </div><!--box box-default box-solid-->
         </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
